﻿#include <stdio.h>

void RemoveSpace(char str[])
{
    //to do...
}

int ValidateStringInput(char exp[])
{
    return 1;
}

void PreprocessingExpression(char exp[])
{
    //to do...
}

int ValidateExpression(char exp[])
{
    return 1;
}

double GetResult(exp)
{
    return 0;
}

int main()
{
    char exp[255];

    printf("SIMPLE CALCULATOR\n");
    printf("=============================\n");
    printf("Enter your expression: ");
    scanf("%s", &exp);

    RemoveSpace(exp);
    if(ValidateStringInput(exp))
    {
        PreprocessingExpression(exp);

        if (ValidateExpression(exp))
        {
            double result = GetResult(exp);
            printf("%s = %f", exp, result);
        }
    }

    getchar();

    return 0;
}
